//
//  PublicBorrowViewController.m
//  WBBaseProject
//
//  Created by 吴斌 on 2018/3/7.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "PublicBorrowViewController.h"
#import "PublicBorrowInfoView.h"
#import "PublicBorrowMoneyView.h"

@interface PublicBorrowViewController ()

@end

@implementation PublicBorrowViewController

#pragma mark - 生命周期 Life Circle
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"借款";
    self.view.backgroundColor = WB_RGBColor(240, 240, 240);
    
    [self setUpUI];
}

- (void)setUpUI
{
    PublicBorrowMoneyView *moneyView = [[PublicBorrowMoneyView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 220)];
    [self.view addSubview:moneyView];
    
    PublicBorrowInfoView *serviceView = [[NSBundle mainBundle] loadNibNamed:@"PublicBorrowInfoView" owner:nil options:nil].firstObject;
    [self.view addSubview:serviceView];
    [serviceView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(moneyView.bottom).equalTo(10);
        make.height.equalTo(45);
        make.right.left.equalTo(0);
    }];
    
    PublicBorrowInfoView *payView = [[NSBundle mainBundle] loadNibNamed:@"PublicBorrowInfoView" owner:nil options:nil].firstObject;
    [self.view addSubview:payView];
    [payView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(serviceView.bottom).equalTo(0);
        make.height.equalTo(45);
        make.right.left.equalTo(0);
    }];
//    
    
    
    

}



@end
